package com.cloudeasy.user.field;

import java.util.ArrayList;
import java.util.List;

/**
 * 角色字段
 */
public class RoleField {
    private static List<String> filed = new ArrayList<>();

    static {
        filed.add("id");
        filed.add("name");
        filed.add("enable");
    }

    public static List<String> getFieldList() {
        return filed;
    }

    /**
     * 是否存在field字段
     *
     * @param field 字段
     * @return {@link Boolean}
     */
    public static Boolean contains(String field) {
        return filed.contains(field);
    }
}
